package com.tikou.ui.view.pieview;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Tikou on 2017/11/28.
 * 作者：TianNuo
 * 邮箱：1320917731@qq.com
 * 说明：饼状图的参数配置
 * 参考：
 */

public class PieViewConfig implements Serializable {
    private List<IPieInfo> mIpieInfos;

    public PieViewConfig() {
        mIpieInfos = new ArrayList<>();
    }

    public PieViewConfig addData(IPieInfo info){
        if (mIpieInfos==null){
            mIpieInfos = new ArrayList<>();
        }
        mIpieInfos.add(info);
        return this;
    }
}
